home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / HyperCard Related / Rinaldi Collection / FileMaker 1.3 (US) / FileMaker 1.3 (US) / cards.xml < prev    next >
Encoding:
Text File  |  1995-02-21  |  15.6 KB  |  222 lines

  1. card_3055.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3055</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3273.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2661</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2375.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>69</left>
  25.             <top>68</top>
  26.             <right>434</right>
  27.             <bottom>252</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>5</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>119</left>
  57.             <top>282</top>
  58.             <right>243</right>
  59.             <bottom>316</bottom>
  60.         </rect>
  61.         <style>roundrect</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>FileToRes</name>
  74.         <script>on mouseUp
  75. answer file "Please select file:"
  76. if it ‚↠empty
  77. then
  78. put it into FileName
  79. ask "Name of the resource ?" with "NewData"
  80. if it ‚↠empty
  81. then
  82. FileToRes FileName,it
  83. if the result ‚↠empty
  84. then answer the Result
  85. else answer "Resource successfully created"
  86. end if
  87. end if
  88. end mouseUp
  89. </script>
  90.     </part>
  91.     <part>
  92.         <id>8</id>
  93.         <type>field</type>
  94.         <visible> <false /> </visible>
  95.         <dontWrap> <false /> </dontWrap>
  96.         <dontSearch> <false /> </dontSearch>
  97.         <sharedText> <false /> </sharedText>
  98.         <fixedLineHeight> <true /> </fixedLineHeight>
  99.         <autoTab> <false /> </autoTab>
  100.         <lockText> <true /> </lockText>
  101.         <rect>
  102.             <left>131</left>
  103.             <top>9</top>
  104.             <right>377</right>
  105.             <bottom>273</bottom>
  106.         </rect>
  107.         <style>shadow</style>
  108.         <autoSelect> <false /> </autoSelect>
  109.         <showLines> <false /> </showLines>
  110.         <wideMargins> <false /> </wideMargins>
  111.         <multipleLines> <false /> </multipleLines>
  112.         <reservedFamily> 0 </reservedFamily>
  113.         <titleWidth>0</titleWidth>
  114.         <icon>0</icon>
  115.         <textAlign>left</textAlign>
  116.         <font>Geneva</font>
  117.         <textSize>12</textSize>
  118.         <textStyle>bold</textStyle>
  119.         <textHeight>16</textHeight>
  120.         <name></name>
  121.         <script></script>
  122.     </part>
  123.     <part>
  124.         <id>11</id>
  125.         <type>button</type>
  126.         <visible> <false /> </visible>
  127.         <reserved5> 0 </reserved5>
  128.         <reserved4> 0 </reserved4>
  129.         <reserved3> 0 </reserved3>
  130.         <reserved2> 0 </reserved2>
  131.         <reserved1> 0 </reserved1>
  132.         <enabled> <true /> </enabled>
  133.         <rect>
  134.             <left>135</left>
  135.             <top>13</top>
  136.             <right>148</right>
  137.             <bottom>26</bottom>
  138.         </rect>
  139.         <style>rectangle</style>
  140.         <showName> <true /> </showName>
  141.         <highlight> <false /> </highlight>
  142.         <autoHighlight> <true /> </autoHighlight>
  143.         <sharedHighlight> <true /> </sharedHighlight>
  144.         <family>0</family>
  145.         <titleWidth>0</titleWidth>
  146.         <icon>0</icon>
  147.         <textAlign>center</textAlign>
  148.         <font>Chicago</font>
  149.         <textSize>12</textSize>
  150.         <textStyle>plain</textStyle>
  151.         <name></name>
  152.         <script>on mouseUp
  153. lock Screen
  154. hide btn 2
  155. hide cd fld 2
  156. hide cd fld 3
  157. end mouseUp
  158. </script>
  159.     </part>
  160.     <part>
  161.         <id>16</id>
  162.         <type>field</type>
  163.         <visible> <false /> </visible>
  164.         <dontWrap> <false /> </dontWrap>
  165.         <dontSearch> <false /> </dontSearch>
  166.         <sharedText> <false /> </sharedText>
  167.         <fixedLineHeight> <true /> </fixedLineHeight>
  168.         <autoTab> <false /> </autoTab>
  169.         <lockText> <false /> </lockText>
  170.         <rect>
  171.             <left>156</left>
  172.             <top>18</top>
  173.             <right>354</right>
  174.             <bottom>262</bottom>
  175.         </rect>
  176.         <style>scrolling</style>
  177.         <autoSelect> <false /> </autoSelect>
  178.         <showLines> <false /> </showLines>
  179.         <wideMargins> <false /> </wideMargins>
  180.         <multipleLines> <false /> </multipleLines>
  181.         <reservedFamily> 0 </reservedFamily>
  182.         <titleWidth>0</titleWidth>
  183.         <icon>0</icon>
  184.         <textAlign>left</textAlign>
  185.         <font>Geneva</font>
  186.         <textSize>10</textSize>
  187.         <textStyle>plain</textStyle>
  188.         <textHeight>13</textHeight>
  189.         <name></name>
  190.         <script></script>
  191.     </part>
  192.     <part>
  193.         <id>17</id>
  194.         <type>button</type>
  195.         <visible> <true /> </visible>
  196.         <reserved5> 0 </reserved5>
  197.         <reserved4> 0 </reserved4>
  198.         <reserved3> 0 </reserved3>
  199.         <reserved2> 0 </reserved2>
  200.         <reserved1> 0 </reserved1>
  201.         <enabled> <true /> </enabled>
  202.         <rect>
  203.             <left>320</left>
  204.             <top>282</top>
  205.             <right>444</right>
  206.             <bottom>316</bottom>
  207.         </rect>
  208.         <style>roundrect</style>
  209.         <showName> <true /> </showName>
  210.         <highlight> <false /> </highlight>
  211.         <autoHighlight> <true /> </autoHighlight>
  212.         <sharedHighlight> <true /> </sharedHighlight>
  213.         <family>0</family>
  214.         <titleWidth>0</titleWidth>
  215.         <icon>0</icon>
  216.         <textAlign>center</textAlign>
  217.         <font>Chicago</font>
  218.         <textSize>12</textSize>
  219.         <textStyle>plain</textStyle>
  220.         <name>ResToFile</name>
  221.         <script>on mouseUp
  222. ask file "Create file:" with "New file"
  223. if it ‚↠empty
  224. then
  225. put it into FileName
  226. ask "Name of the resource ?" with "TestStack"
  227. if it ‚↠empty
  228. then
  229. put it into DATAName
  230. ResToFile FileName,DATAName
  231. if the result ‚↠empty
  232. then
  233. if first word of the Result is "Error"
  234. then answer the Result
  235. else put the Result into FileName
  236. end if
  237. if DATAName is "TestStack"
  238. then go stack FileName
  239. end if
  240. end if
  241. end mouseUp
  242. </script>
  243.     </part>
  244.     <content>
  245.         <layer>card</layer>
  246.         <id>1</id>
  247.         <text><span class="style1">
  248.                                        </span><span class="style2">FileMaker stack 1.3</span><span class="style1">
  249.  
  250.                                          </span><span class="style3">by Fr√©d√©ric RINALDI</span><span class="style1">
  251.  
  252. </span><span class="style4">DESCRIPTION</span><span class="style1">
  253.   FileMaker is a set of two XCMDs : FileToRes and ResToFile. These two externals allow to create any type of document, empty or already filled, from within a script and reopen it with the original application.
  254.  
  255.  
  256.                                             </span><span class="style2">FileToRes 1.3</span><span class="style1">
  257.  
  258.  
  259. </span><span class="style4">SYNTAX</span><span class="style1">
  260.            FileToRes <file path or name>,<DATA res name>[,<dest file>]
  261.  
  262. </span><span class="style4">PARAMETERS</span><span class="style1">
  263.    </span><span class="style2"><file path or name></span><span class="style1"> can be a single name or whole pathname.  If just a single name is supplied, the file will be searched in the same folder as the current stack.
  264.  
  265.    </span><span class="style2"><DATA res name></span><span class="style1"> is the name of the DATA resource to create.
  266.  
  267.    </span><span class="style2"><dest file></span><span class="style1"> is the destination file pathname where the DATA resource will be created. If omited, current stack is used.
  268.  
  269.      Using "!", "?" and "=" as first parameter will return an online help (resp. copyright,  syntax and output).
  270.  
  271. </span><span class="style4">USING</span><span class="style1">
  272.    The XCMD can generate DATA resource from any kind of file with no resource fork. Along with the datas, the file type, creator and flags are put in the DATA resource in order for ResToFile XCMD to regenerate exactly the same file than the original.
  273.    If a DATA resource already exists with the same name, a dialog will be prompted for the user to choose to rename, replace or cancel. If rename is choosen, a second dialog will ask for the new name, and the Result will return the changed name. With replace, the previous resource will be overwritten.
  274.   If you plan to capture a stack, compact it before in order to get the smallest resource as possible.
  275.  
  276. </span><span class="style4">ERRORS</span><span class="style1">
  277.   If an error occurs, the Result can return :
  278.      "Error : Not a file"
  279.      "Error : Not a folder"
  280.      "Error : Alias file not supported"
  281.      "Error : Volume not found"
  282.      "Error : Bad Name"
  283.      "Error : File not found"
  284.      "Error : Folder not found"
  285.      "Error : File is busy"
  286.      "Error : I/O Error"
  287.      "Error : Folder is full"
  288.      "Error : Volume is locked"
  289.      "Error : No resource fork"
  290.      "Error : Duplicate file/folder name"
  291.      "Error : Moving whole volume not allowed"
  292.      "Error : Not an AppleShare volume"
  293.      "Error : AppleShare insufficient privileges"
  294.      "Error : Missing or empty parameter(s)"
  295.      "Error : Creation aborted"
  296.      "Error : Old DATA res could't be removed"
  297.      "Error : Couldn't clear DATA resource"
  298.      "Error : Creation aborted"
  299.      "Error : This file has a resource fork"
  300.      "Error : Out of memory"
  301.      "Error : Couldn't build resource"
  302.      "Error : Couldn't create DATA resource"
  303.  
  304. </span><span class="style4">HISTORY</span><span class="style1">
  305. </span><span class="style2">1.3</span><span class="style1">                                                                                         </span><span class="style2">09/22/93</span><span class="style1">
  306. ‚Ä¢ Fixed resource fork update when DATA added to current stack
  307. ‚Ä¢ Added dest file parameter
  308.                                                                                      
  309. </span><span class="style2">1.2</span><span class="style1">                                                                                         </span><span class="style2">12/25/91</span><span class="style1">
  310. ‚Ä¢ Fixed alias file bug under System 7.0.1
  311.                                                                                          
  312. </span><span class="style2">1.1</span><span class="style1">                                                                                         </span><span class="style2">08/04/91</span><span class="style1">
  313. ‚Ä¢ Added support for System 7.0 alias files
  314. ‚Ä¢ General enhancement of the code
  315. ‚Ä¢ Added "=" param for online help
  316.  
  317.  
  318.                                               </span><span class="style2">ResToFile</span><span class="style1"> </span><span class="style2">1.3</span><span class="style1">
  319.  
  320. </span><span class="style4">SYNTAX</span><span class="style1">
  321.          ResToFile <name or pathName>,<DATA res name>[,<prov file>]
  322.  
  323. </span><span class="style4">PARAMETERS</span><span class="style1">
  324.    </span><span class="style2"><file path or name></span><span class="style1"> can be a single name or whole pathname.  If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
  325.                                                                                          
  326.    </span><span class="style2"><DATA res name> </span><span class="style1">is the name of the DATA resource which will be used to re-create the original file.
  327.  
  328.    </span><span class="style2"><prov file></span><span class="style1"> is the provenance file pathname where the DATA resource will be loaded from. If omited, current stack is used.
  329.                                                                                          
  330.      Using "!", "?" and "=" as first parameter will return an online help (resp. copyright,  syntax and output).
  331.  
  332. </span><span class="style4">USING</span><span class="style1">
  333.   The XCMD uses DATA resource previously created by FileToRes XCMD to rebuild the whole file. Since file type, creator and flags were preserved, the rebuilt file is exactly the same than the original.
  334.    If a file already exists with the same name, a dialog will be prompted for the user to choose to rename, replace or cancel. If rename is choosen, a second dialog will ask for the new name, and the Result will return the changed name. With replace, the previous file will be overwritten.
  335.  
  336. </span><span class="style4">ERRORS
  337. </span><span class="style1">  If an error occurs, the Result can return :
  338.      "Error : Not a file"
  339.      "Error : Not a folder"
  340.      "Error : Alias file not supported"
  341.      "Error : Volume not found"
  342.      "Error : Bad Name"
  343.      "Error : File not found"
  344.      "Error : Folder not found"
  345.      "Error : File is busy"
  346.      "Error : I/O Error"
  347.      "Error : Folder is full"
  348.      "Error : Volume is locked"
  349.      "Error : No resource fork"
  350.      "Error : Duplicate file/folder name"
  351.      "Error : Moving whole volume not allowed"
  352.      "Error : Not an AppleShare volume"
  353.      "Error : AppleShare insufficient privileges"
  354.      "Error : Missing or empty parameter(s)"
  355.      "Error : DATA resource not found"
  356.      "Error : No more disk space"
  357.      "Error : Creation aborted"
  358.  
  359. </span><span class="style4">HISTORY</span><span class="style1">
  360. </span><span class="style2">1.3</span><span class="style1">                                                                                         </span><span class="style2">09/22/93</span><span class="style1">
  361. ‚Ä¢ Added prov file parameter
  362.                                                                                      
  363. </span><span class="style2">1.2</span><span class="style1">                                                                                         </span><span class="style2">12/25/91</span><span class="style1">
  364. ‚Ä¢ Fixed alias file bug under System 7.0.1
  365.                                                                                          
  366. </span><span class="style2">1.1</span><span class="style1">                                                                                         </span><span class="style2">08/04/91</span><span class="style1">
  367. ‚Ä¢ Added support for System 7.0 alias files
  368. ‚Ä¢ General enhancement of the code
  369. ‚Ä¢ Added "=" param for online help
  370.                                                                                          
  371. </span><span class="style4">TESTING</span><span class="style1">
  372.    To test these XCMDs, just click on buttons below. A DATA resource named "TestStack" is already in the stack for testing purpose. It will create a stack template with two cards, script and objects.                                                                                         
  373. --------------------------------------------------------------------
  374. </span><span class="style5">   All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present :
  375. </span><span class="style1">
  376. </span><span class="style3">      FileToRes & ResToFile XCMDs, ¬© Frederic Rinaldi, 1989‚Ķ1993.
  377.  
  378.    Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses:
  379. </span><span class="style1">
  380. </span><span class="style6">AppleLink</span><span class="style3">: RINALDI1   </span><span class="style6">CalvaCom</span><span class="style3"> : FR10    </span><span class="style6">Compuserve</span><span class="style3"> : 71170,2111
  381. </span><span class="style6">               Internet</span><span class="style3"> : RINALDI1@APPLELINK.APPLE.COM</span></text>
  382.     </content>
  383.     <content>
  384.         <layer>card</layer>
  385.         <id>8</id>
  386.         <text>
  387. </text>
  388.     </content>
  389.     <content>
  390.         <layer>card</layer>
  391.         <id>16</id>
  392.         <text>This XFCN is FreeWare,allowing unlimitted use in any non-commercial stack. 
  393. You just need in this case to mention the author's name in the stack.
  394. Any commercial use must be licenced and aknowledged by the author.</text>
  395.     </content>
  396.     <name></name>
  397.     <script></script>
  398. </card>
  399.  
  400.  
  401.